package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.StationDao;
import io.renren.entity.Station;
import io.renren.service.StationService;



@Service("stationService")
public class StationServiceImpl implements StationService {
	@Autowired
	private StationDao stationDao;
	
	@Override
	public Station queryObject(Integer id){
		return stationDao.queryObject(id);
	}
	
	@Override
	public List<Station> queryList(Map<String, Object> map){
		return stationDao.queryList(map);
	}
	@Override
	public List<Station> queryListBy_idArea_idCrossborderalarm(Map<String, Object> map){
		return stationDao.queryListBy_idArea_idCrossborderalarm(map);
	}
	@Override
	public int queryTotal(Map<String, Object> map){
		return stationDao.queryTotal(map);
	}
	
	@Override
	public void save(Station station){
		stationDao.save(station);
	}
	
	@Override
	public void update(Station station){
		stationDao.update(station);
	}
	
	@Override
	public void delete(Integer id){
		stationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		stationDao.deleteBatch(ids);
	}

	@Override
	public List<Station> queryListBy_idArea_idDisappearalarm(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return stationDao.queryListBy_idArea_idDisappearalarm(map);
	}
	
}
